package top.chj.day17.exam.test2;

/**
 * @Auther:小陈的Java
 * 用四种方式实现创建多线程
 */
//继承Thread类创建子线程
public class demo1 extends Thread{
    @Override
    public void run() {
        System.out.println("子线程");
    }
    public static void main(String[] args) {
        Thread thread1 = new demo1();
        thread1.start();
        System.out.println("主线程");

    }
}
